function SrfBetDAONoLocalStorage() {
	var _parser = ParserFactory.getInstance(this.model.config.parser);
	this.getUser = function(command) {
		var user = null;
		var error = false;
		var exception = '';
		try{
			if( $.cookie('srfBetCurrentUser') != null ){
				user = _parser.decodeUserLocalStorage( $.cookie('srfBetCurrentUser') );
			}
			if( !command ){
				return user;
			}
			command.result( new ResultEvent( ResultEvent.RESULT_SUCCESS, user ) );
		}catch(e){
			error = true;
			exception = e;
		}
		if( error && command ){
			command.fault( new FaultEvent( FaultEvent.FAULT, exception ) );
		}else if( error ){
			return exception;
		}
	}
	this.deleteUserLocalStore = function(user, command) {
		var error = false;
		var exception = '';
		try{
			$.cookie('srfBetCurrentUser', null);
			if( !command ){
				return true;
			}
			command.result( new ResultEvent( ResultEvent.RESULT_SUCCESS, user ) );
		}catch(e){
			error = true;
			exception = e;
		}
		if( error && command ){
			command.fault( new FaultEvent( FaultEvent.FAULT, exception ) );
		}else if( error ){
			return exception;
		}
	}
	this.localStoreUser = function(user, command) {
		var error = false;
		var exception = '';
		try{
			$.cookie('srfBetCurrentUser', _parser.encodeUser( user ), { expires: 365, path: '/' });
			if( !command ){
				return user;
			}
			command.result( new ResultEvent( ResultEvent.RESULT_SUCCESS, user ) )
		}catch(e){
			error = true;
			exception = e;
		}
		if( error && command ){
			command.fault( new FaultEvent( FaultEvent.FAULT, exception ) );
		}else if( error ){
			return exception;
		}
	}
}
//implement DAO interface
SrfBetDAONoLocalStorage.prototype = new SrfBetDAO();
